Skip to content

Conversation

dpezely
Copy link

@dpezely dpezely commented Aug 5, 2025

  • Have panic report user's call site (rather than the fn definition in lib.rs)
  • Adds #[track_caller]
  • Adds tests with optional manual instructions for visual confirmation
    • Tests mix std within the existing no_std module, albeit conditionally
    • Feel free to discard these tests since this is a mature Rust feature
  • It's been available for rust libraries since 1.42 and generally available since Rust 1.46.0 released 9 Sep 2020
  • See also: The track_caller attribute within Code generation attributes section of The Rust Reference

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant